import request from '@/utils/request'

// 查询报名活动信息列表
export function listMyeventlist(query) {
  return request({
    url: '/event/myeventlist/list',
    method: 'get',
    params: query
  })
}

// 查询报名活动信息详细
export function getMyeventlist(id) {
  return request({
    url: '/event/myeventlist/' + id,
    method: 'get'
  })
}

// 新增报名活动信息
export function addMyeventlist(data) {
  return request({
    url: '/event/myeventlist',
    method: 'post',
    data: data
  })
}

// 修改报名活动信息
export function updateMyeventlist(data) {
  return request({
    url: '/event/myeventlist',
    method: 'put',
    data: data
  })
}

// 删除报名活动信息
export function delMyeventlist(id) {
  return request({
    url: '/event/myeventlist/' + id,
    method: 'delete'
  })
}
